package com.cmc6.user.model.dto;

import com.cmc6.common.constant.BaseRegexConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@EqualsAndHashCode(callSuper = true)
@Data
public class PhoneCodeNotBlankDTO extends PhoneNotBlankDTO {

    @NotBlank
    @Pattern(regexp = BaseRegexConstant.CODE_NUMBER_6_REGEXP)
    @ApiModelProperty(value = "手机验证码", required = true)
    private String code;

}
